import util from "../../util";
import parentInstance from '../parent/parentInstance';
import tools from 'public/tools'

export default class statistics extends parentInstance {
    constructor() {
        super(statistics, util.api.StatisticsInstance)
    }
    static create(record){
        let object=new statistics();
        if(!!record){
            object.setRecord(record);
        };
        return object;
    }
    /**
     * 新增模板
     * @returns {}
     */
    static tpl(){
        return {
            // instanceId: tools.uuid(),
            name: "",
            type:"statistics",
            className:"",
            version: "1.0",
            published: true,
            values:{},
            // web:{},
            // others:{},
            comments: ""
        }
    }
}
